$(function(){



    //交易所公告
    var text = new Vue({
        el: '#block-information',
        data:{
            title:"",
            time:"",
            source:"",
            content:'',
            url:"",
        },
        methods:{
            //时间差
            getTimeChar:function(oldTime){
                var date =  new Date();
                var currTime = date.getTime();
                var t = currTime - oldTime;
                var timeType = [{name:'分前',value:60000},{name:'小时前',value: 3600000},{name:'天前',value:86400000}, ];
                for(var i=timeType.length-1; i>=0; i--){
                    if( t > timeType[i].value){
                        return  Math.floor(t/timeType[i].value)+timeType[i].name;
                    }
                }
            },
        },
        mounted:function(){
            this.$nextTick(function(){
                var obj = {
                    noticeId: getUrlParams().id, //	公告id	是	30	String
                    element: text,
                };
                getBourNotice(obj);
            });
        }
    });
    //右侧
    var n = new Vue({
        el: '#news-information',
        data:{},
        components:{
            // 'notice-content': noticeFullComponent, //交易所公告
            // 'up-down-content': upDownFullComponent, //24H涨跌榜
            'hot-content':hotFullComponent,  //热门资讯
        },
        methods: { },
        mounted:function(){
            this.$nextTick(function(){
            });
        }
    });

});